package com.course.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.course.api.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    @Select("select id from sys_role where description = #{description}")
    Long selectRoleByDescription(@Param("description") String description);
}
